package com.ruoyi.teacher.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.TAdditionalMapper;
import com.ruoyi.teacher.domain.TAdditional;
import com.ruoyi.teacher.service.ITAdditionalService;

/**
 * 补充查看Service业务层处理
 * 
 * @author xiangzy
 * @date 2022-04-18
 */
@Service
public class TAdditionalServiceImpl implements ITAdditionalService 
{
    @Autowired
    private TAdditionalMapper tAdditionalMapper;

    /**
     * 查询补充查看
     * 
     * @param recordid 补充查看ID
     * @return 补充查看
     */
    @Override
    public TAdditional selectTAdditionalById(Long recordid)
    {
        return tAdditionalMapper.selectTAdditionalById(recordid);
    }

    /**
     * 查询补充查看列表
     * 
     * @param tAdditional 补充查看
     * @return 补充查看
     */
    @Override
    public List<TAdditional> selectTAdditionalList(TAdditional tAdditional)
    {
        return tAdditionalMapper.selectTAdditionalList(tAdditional);
    }

    /**
     * 新增补充查看
     * 
     * @param tAdditional 补充查看
     * @return 结果
     */
    @Override
    public int insertTAdditional(TAdditional tAdditional)
    {
        tAdditional.setCreateTime(DateUtils.getNowDate());
        return tAdditionalMapper.insertTAdditional(tAdditional);
    }

    /**
     * 修改补充查看
     * 
     * @param tAdditional 补充查看
     * @return 结果
     */
    @Override
    public int updateTAdditional(TAdditional tAdditional)
    {
        tAdditional.setUpdateTime(DateUtils.getNowDate());
        return tAdditionalMapper.updateTAdditional(tAdditional);
    }

    /**
     * 批量删除补充查看
     * 
     * @param recordids 需要删除的补充查看ID
     * @return 结果
     */
    @Override
    public int deleteTAdditionalByIds(Long[] recordids)
    {
        return tAdditionalMapper.deleteTAdditionalByIds(recordids);
    }

    /**
     * 删除补充查看信息
     * 
     * @param recordid 补充查看ID
     * @return 结果
     */
    @Override
    public int deleteTAdditionalById(Long recordid)
    {
        return tAdditionalMapper.deleteTAdditionalById(recordid);
    }
}
